package view.notes;

import javax.swing.GroupLayout;

public class GroupLayoutNoteGammeJPanel extends AbstractNoteGammeJPanel {

	GroupLayout groupLayout;
	
	public GroupLayoutNoteGammeJPanel() {
		super();
	}
	
	@Override
	protected void setLayoutAndAddCommponents() {
		this.groupLayout = new GroupLayout(this);
		this.setLayout(this.groupLayout);
		
		groupLayout.setAutoCreateContainerGaps(true);
		groupLayout.setAutoCreateGaps(true);
		
		groupLayout.setVerticalGroup(groupLayout.createSequentialGroup()
				.addComponent(this.choixLabel)
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.jComboBox)
					.addComponent(this.okButton))
				.addComponent(this.gammeMajeureLabel)
				.addComponent(this.gammeMajeureValue)
				.addComponent(this.gammeMineureLabel)
				.addComponent(this.gammeMineureValue)
		);
		
		groupLayout.setHorizontalGroup(groupLayout.createSequentialGroup()
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
					.addComponent(this.choixLabel)
					.addComponent(this.jComboBox)
					.addComponent(this.gammeMajeureLabel)
					.addComponent(this.gammeMajeureValue)
					.addComponent(this.gammeMineureLabel)
					.addComponent(this.gammeMineureValue))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
					.addComponent(this.okButton))
		);
	}

}
